namespace EyeOpen.Warehouse.Mvc
{
	using System;
	using System.Collections.Generic;
	using System.Web.Mvc;

	using Data;

	using EyeOpen.Warehouse.Mvc.ViewModel.Controllers;

	public class CustomDependencyResolver : IDependencyResolver
	{
		public object GetService(Type serviceType)
		{
			if (serviceType == typeof(CustomerController))
			{
				return 
					new CustomerController(new EntityFrameworkWarehouseContext());
			}

			return null;
		}

		public IEnumerable<object> GetServices(Type serviceType)
		{
			return new List<object>();
		}
	}
}